home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2001 December / pcwk12201b.iso / Wersje pelne i specjalne / Ghostscript 7.0 / gs700w32.exe / gs7.00 / lib / eps2eps.bat < prev    next >
DOS Batch File  |  2000-12-30  |  612b  |  27 lines

  1. @echo off 
  2. @rem $Id: eps2eps.bat,v 1.4 2000/12/30 18:45:37 alexcher Exp $
  3. @rem "Distill" Encapsulated PostScript.
  4.  
  5. if "%1"=="" goto usage
  6. if "%2"=="" goto usage
  7. call gssetgs.bat
  8. echo -dNOPAUSE -dBATCH -dSAFER >_.at
  9. rem Watcom C deletes = signs, so use # instead.
  10. echo -dDEVICEWIDTH#250000 -dDEVICEHEIGHT#250000 >>_.at
  11. :cp
  12. if "%3"=="" goto doit
  13. echo %1 >>_.at
  14. shift
  15. goto cp
  16.  
  17. :doit
  18. rem Watcom C deletes = signs, so use # instead.
  19. %GSC% -q -sDEVICE#epswrite -sOutputFile#%2 @_.at %1
  20. if exist _.at erase _.at
  21. goto end
  22.  
  23. :usage
  24. echo "Usage: eps2eps ...switches... input.eps output.eps"
  25.  
  26. :end
  27.